package com.ruoyi.baoming.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baoming.mapper.ExamMajorMapper;
import com.ruoyi.baoming.domain.ExamMajor;
import com.ruoyi.baoming.service.IExamMajorService;

/**
 * 报考专业信息Service业务层处理
 * 
 * @author xiaosong
 * @date 2024-11-20
 */
@Service
public class ExamMajorServiceImpl implements IExamMajorService 
{
    @Autowired
    private ExamMajorMapper examMajorMapper;

    /**
     * 查询报考专业信息
     * 
     * @param id 报考专业信息主键
     * @return 报考专业信息
     */
    @Override
    public ExamMajor selectExamMajorById(Long id)
    {
        return examMajorMapper.selectExamMajorById(id);
    }

    /**
     * 查询报考专业信息列表
     * 
     * @param examMajor 报考专业信息
     * @return 报考专业信息
     */
    @Override
    public List<ExamMajor> selectExamMajorList(ExamMajor examMajor)
    {
        return examMajorMapper.selectExamMajorList(examMajor);
    }

    /**
     * 新增报考专业信息
     * 
     * @param examMajor 报考专业信息
     * @return 结果
     */
    @Override
    public int insertExamMajor(ExamMajor examMajor)
    {
        return examMajorMapper.insertExamMajor(examMajor);
    }

    /**
     * 修改报考专业信息
     * 
     * @param examMajor 报考专业信息
     * @return 结果
     */
    @Override
    public int updateExamMajor(ExamMajor examMajor)
    {
        return examMajorMapper.updateExamMajor(examMajor);
    }

    /**
     * 批量删除报考专业信息
     * 
     * @param ids 需要删除的报考专业信息主键
     * @return 结果
     */
    @Override
    public int deleteExamMajorByIds(Long[] ids)
    {
        return examMajorMapper.deleteExamMajorByIds(ids);
    }

    /**
     * 删除报考专业信息信息
     * 
     * @param id 报考专业信息主键
     * @return 结果
     */
    @Override
    public int deleteExamMajorById(Long id)
    {
        return examMajorMapper.deleteExamMajorById(id);
    }
}
